<script setup lang="ts">
import AlarmList from './components/AlarmList.vue'
import { StagewiseToolbar } from '@stagewise/toolbar-vue'

// Stagewise configuration for development mode only
const stagewiseConfig = {
  plugins: []
}

// Check if running in development mode
const isDevelopment = import.meta.env.MODE === 'development'
</script>

<template>
  <div class="app-container">
    <header class="app-header">
      <div class="header-content">
        <h1 class="app-title">华荣科技视频监控报警系统</h1>
        <div class="header-accent"></div>
      </div>
    </header>
    <main class="app-main">
      <AlarmList />
    </main>
    <!-- Stagewise toolbar - only rendered in development mode -->
    <!-- <StagewiseToolbar v-if="isDevelopment" :config="stagewiseConfig" /> -->
  </div>
</template>

<style>
@import '@/assets/main.css';

.app-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(to bottom, #f5f5f7 0%, #e5e5e7 100%);
}

.app-header {
  width: 100%;
  position: relative;
  background: linear-gradient(135deg, var(--tech-gradient-start), var(--tech-gradient-end));
  color: white;
  padding: 1.5rem 0;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

.header-accent {
  position: absolute;
  bottom: -5px;
  left: 1rem;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--tech-accent-blue), var(--tech-accent-cyan));
  border-radius: 3px;
}

.app-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: white;
  margin: 0;
  text-align: left;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.app-main {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .app-container {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  
  .app-header, .app-title {
    width: 100%;
    display: block;
  }
  
  .app-title {
    font-size: 2rem;
  }
}
</style>
